package com.example.practice20240802;

import androidx.annotation.NonNull;
import androidx.lifecycle.ViewModel;

import java.io.Closeable;

/**
 * @author cy
 * @date 2024/8/2
 * @apiNote
 */
public class MyViewModel extends ViewModel {
    private int count = 0;

    public MyViewModel(int count) {
        this.count = count;
    }

    public MyViewModel(int count, @NonNull Closeable... closeables) {
        super(closeables);
        this.count = count;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
}

